package com.rf.HelloSpringBoot.enums;

/**
 * 
 * @author linzhengchun
 *
 * 2017年8月1日 上午11:47:19
 */
public enum ResultEnum {
	UNKNOW_ERROR(-1, "未知错误"),
	SUCCESS(0, "成功"),
	PRIMARY_SCHOOL(100, "你还在上小学吧~"),
	MIDDLE_SCHOLL(101, "你还在上中学吧~"),
	;
	
	private Integer code;
	private String msg;
	
	private ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	public Integer getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}	
}
